<ion-modal-view>
  <ion-header-bar class="bar bar-royal">
    <h1 class="title">分配部门</h1>
    <div class="buttons">
      <button class="button button-icon ion-ios-close-empty" ng-click="modal.hide();"></button>
    </div>
  </ion-header-bar>
	<ion-content class="wrap-light" ng-class="{'has-footer':selectedCount>0}">
		<tree-view
			recursion-template='templates/common/model/radio-tree.html',
			tree-data="deptTree" 
			text-field="name" 
			leaf-icon="ion-ios-folder-outline"
			item-clicked="select($item)">
		</tree-view>
	</ion-content>

	<div class="bar bar-footer has-footer bar-balanced" ng-if="selectedCount>0">  
        <a class="title" ng-click="importCat();">
            导入 {{selectedCount}} 个分类
        </a>
    </div>

</ion-modal-view>

